﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mozlite
{
    /// <summary>
    /// 提供者未找到错误类。
    /// </summary>
    public class ProviderNotFoundException:ArgumentException
    {
        /// <summary>
        /// 初始化类<see cref="T:Mozlite.ProviderNotFoundException"/>。
        /// </summary>
        /// <param name="parameterName">参数名称。</param>
        public ProviderNotFoundException(string parameterName) : base("The provider by parameter cannot be found!", parameterName) { }
        /// <summary>
        /// 初始化类<see cref="T:Mozlite.ProviderNotFoundException"/>。
        /// </summary>
        /// <param name="parameterName">参数名称。</param>
        /// <param name="providerName">提供者名称。</param>
        public ProviderNotFoundException(string parameterName, string providerName) : base("The provider notify by name of“" + providerName + "” cannot be found!", parameterName) { }
    }
}
